From 4c6577fb8b6c2dd14c8ab3020b3f47d11d662c5c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 27 Aug 2008 04:01:53 +0000 Subject: [PATCH] =?utf8?q?Bug=20549354=20=E2=80=93=20Crash=20trying=20to?= =?utf8?q?=20open=20a=20file=20on=20a=20remote=20folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-08-26 Matthias Clasen Bug 549354 – Crash trying to open a file on a remote folder * gtk/gtkfilechooserdefault.c (error_message_with_parent): Handle the fact that parent may be NULL without crashing. svn path=/trunk/; revision=21206 --- ChangeLog | 7 +++++++ gtk/gtkfilechooserdefault.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 50b849a9b8..fd2b4048c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-26 Matthias Clasen + + Bug 549354 – Crash trying to open a file on a remote folder + + * gtk/gtkfilechooserdefault.c (error_message_with_parent): Handle + the fact that parent may be NULL without crashing. + 2008-08-25 Matthias Clasen * modules/printbackends/cups/gtkprintbackendcups.c: Replace diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 6e82cff1c4..71eadcf7a3 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -990,7 +990,7 @@ error_message_with_parent (GtkWindow *parent, gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", detail); - if (parent->group) + if (parent && parent->group) gtk_window_group_add_window (parent->group, GTK_WINDOW (dialog)); gtk_dialog_run (GTK_DIALOG (dialog)); -- 2.30.2